package com.samuel.learning.base.interview;

import lombok.Data;

@Data
public class SubObject extends Object{

    private String  desc;

    @Override
    public boolean equals(java.lang.Object obj) {
        if(this == obj) return true;
        if(! (obj instanceof SubObject) ) return false;
        SubObject x = (SubObject) obj;
        return x.desc == desc && x.code == super.code;
    }
}
